import http from '../utils/request'
const IndexAPI = {
    
    /**小程序首页轮播图 */
    banner: (data) => {
    	return http.request({
    		url: '/api/restaurant/dashboard/banner',
    		method: 'GET',
    		data
    	})
    },
    /**待办事项 */
    todoList: (data) => {
    	return http.request({
    		url: `/api/restaurant/dashboard/todoList`,
    		method: 'GET',
    		data
    	})
    },
	/**任务统计 */
	taskStatistics: (data) => {
		return http.request({
			url: `/api/restaurant/dashboard/taskStatistics`,
			method: 'GET',
			data
		})
	},
	
	/**评分统计 */
	scoreStatistics: (data) => {
		return http.request({
			url: `/api/restaurant/dashboard/scoreStatistics`,
			method: 'GET',
			data
		})
	},
	
	/**当月评分 */
	monthlyRate: (data) => {
		return http.request({
			url: `/api/restaurant/dashboard/monthlyRate`,
			method: 'GET',
			data
		})
	},
	/**日收入支出统计 */
	dayIncomeExpenditureStatistics: (data) => {
		return http.request({
			url: `/api/restaurant/dashboard/dayIncomeExpenditureStatistics`,
			method: 'GET',
			data
		})
	},
	
	/**月收入支出统计 */
	monthIncomeExpenditureStatistics: (data) => {
		return http.request({
			url: `/api/restaurant/dashboard/monthIncomeExpenditureStatistics`,
			method: 'GET',
			data
		})
	},
	
	/**点到统计 */
	attendanceStatistics: (data) => {
		return http.request({
			url: `/api/restaurant/dashboard/attendanceStatistics`,
			method: 'GET',
			data
		})
	},
  
  /**今日收入支出统计 */
  todayIncomeExpenditureStatistics: (data) => {
  	return http.request({
  		url: `/api/restaurant/dashboard/todayIncomeExpenditureStatistics`,
  		method: 'GET',
  		data
  	})
  },
  
  /**部门用户数据 */
  deptUserStatistics: (data) => {
  	return http.request({
  		url: `/api/restaurant/dashboard/deptUserStatistics`,
  		method: 'GET',
  		data
  	})
  },
}
export default IndexAPI